<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!doctype html>
<html class="no-js">
<head>
    <%@ include file="./../common/meta.jsp" %>
    <link rel="stylesheet" href="../../css/ecshop-list.css">
    <script type="text/javascript">
        var type = "<%=request.getParameter("type")%>";
        var local = "<%=request.getParameter("local")%>";
    </script>
</head>
<body>
<header data-am-sticky class="am-header am-header-default am-no-layout">
    <div class="am-header-left am-header-nav">
        <a href="../../app/ecshop/ecshop.jsp" class="last">
            <i class="am-header-icon am-icon-chevron-left"></i>
        </a>
    </div>
    <h1 class="am-header-title">商城列表</h1>
</header>


<div class="am-g">
    <div class="am-tabs" data-am-tabs>
        <div class="cataParent-box">
            <ul class="cataParent" id="cataParent"></ul>
        </div>
        <div class="am-tabs-bd" id="try-on-clothes">
            <div class="am-tab-panel am-fade am-in am-active">
                <div class="tag" id="cataChildrent">
                </div>
                <div class="am-g" id="cataProductPannel">


                </div>
            </div>
        </div>
    </div>
</div>
<div data-am-widget="gotop" class="am-gotop am-gotop-fixed">
    <a href="#top" title="回到顶部">
        <span class="am-gotop-title">回到顶部</span>
        <i class="am-gotop-icon am-icon-chevron-up"></i>
    </a>
</div>
<script id="cataParent-template" type="text/x-handlebars-template">
    {{#each cataList}}
    <li t="{{id}}">
        <a href="javascript:void(0);" class="am-btn am-btn-secondary">{{name}}</a>
    </li>
    {{/each}}
</script>
<script id="cataChildrent-template" type="text/x-handlebars-template">
    {{#each catalogList}}
    <a class="am-badge  am-round am-text-default cataChildrent" cataId="{{id}}">{{name}}</a>
    {{/each}}
</script>
<script id="cataProduct-template" type="text/x-handlebars-template">
    {{#each products}}
    <div class="am-u-sm-6">
        <div class="am-thumbnail">
            <a href="../ecshop/ecshop-detail.jsp?pid={{id}}">
                <img src="{{../imgRoot}}{{picture}}"/>
                <h3 class="am-thumbnail-caption">{{name}}</h3>
            </a>
            <span class="price">￥{{nowPrice}}</span>
            {{#isXiezi bodyType}}
            {{else}}
            <a class="try-on"
               href="../xxdp/xxdp.jsp?productId={{id}}&&image={{../imgRoot}}{{picture}}&&bodyType={{bodyType}}">试穿</a>
            {{/isXiezi}}
        </div>
    </div>
    {{/each}}
</script>
<%@ include file="./../common/footerNav.jsp" %>
<%@ include file="./../common/footer.jsp" %>
<script src="../../js/common/common.js"></script>
<script src="../../js/ecshop/ecshop-list.js"></script>


<script>
    $(function () {
        var from = "<%=request.getParameter("from")%>";
        if (from == "index") {
            $(".last").attr("href", "../../app/xxdp/xxdp.jsp?type=xxdp")
        }


    })
</script>

</body>
</html>